#ifndef _XIAOZHI_CONFIG_H
#define _XIAOZHI_CONFIG_H

#define CONFIG_USE_DEVICE_AEC               0
#define CONFIG_USE_SERVER_AEC               0

#define CONFIG_USE_AFE_WAKE_WORD            1
#define CONFIG_USE_ESP_WAKE_WORD            0
#define CONFIG_USE_CUSTOM_WAKE_WORD         0

#define CONFIG_USE_AUDIO_PROCESSOR          1

#define CONFIG_RECEIVE_CUSTOM_MESSAGE       0

#define OPUS_FRAME_DURATION_MS              60
#define MAX_ENCODE_TASKS_IN_QUEUE           2
#define MAX_PLAYBACK_TASKS_IN_QUEUE         2
#define MAX_DECODE_PACKETS_IN_QUEUE         (2400 / OPUS_FRAME_DURATION_MS)
#define MAX_SEND_PACKETS_IN_QUEUE           (2400 / OPUS_FRAME_DURATION_MS)
#define AUDIO_TESTING_MAX_DURATION_MS       10000

#define AUDIO_POWER_TIMEOUT_MS              15000
#define AUDIO_POWER_CHECK_INTERVAL_MS       1000


#define AS_EVENT_AUDIO_TESTING_RUNNING      (1 << 0)
#define AS_EVENT_WAKE_WORD_RUNNING          (1 << 1)
#define AS_EVENT_AUDIO_PROCESSOR_RUNNING    (1 << 2)
#define AS_EVENT_PLAYBACK_NOT_EMPTY         (1 << 3)


#endif //_XIAOZHI_CONFIG_H